package com.wxy.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.wxy.domain.user;
import com.wxy.mapper.userMapper;
@Service
public class userServiceImpl implements userService{
	@Autowired
	private userMapper userMapper;
	@Override
	public List<user> findUser() {
		// TODO 自动生成的方法存根
		return this.userMapper.findUser();
	}
	@Transactional
	public void updatedata() {
		// TODO 自动生成的方法存根
		userMapper.updateuser1();
		//int i=1/0;
		userMapper.updateuser2();
	}
}
